package com.besttone.search.util;

public class StringUtils {
	public static String getDateByTime(String paramString) {
		if ((isEmpty(paramString)) || (paramString.length() < 16));
		while (true) {
			paramString = paramString.substring(0, 10);
		}
	}

	public static String getString(String paramString) {
		if ((paramString == null) || ("null".equals(paramString))
				|| ("NULL".equals(paramString)))
			paramString = "";
		return paramString;
	}

	public static boolean isEmpty(String paramString) {
		if (paramString == null)
			return true;
		if (paramString!=null && paramString.trim().length() == 0)
			return true;
		return false;
	}

	public static String toZero(String paramString) {
		if (paramString == null)
			paramString = "0";
		return paramString;
	}
}
